package com.lebang.feign.draw.fallback;

import com.lebang.model.RequestUserInfo;
import com.lebang.feign.draw.DrawWishFeign;
import com.lebangweb.response.Callback;
import com.lebangweb.response.JsonData;
import org.springframework.stereotype.Component;

/**
 * @Author: xwj
 * @Date: 2020/3/24 11:46
 * @Version 1.0
 */
@Component
public class DrawWishFallback implements DrawWishFeign {

    @Override
    public JsonData list(RequestUserInfo request) {
        return Callback.fail("400", "请求超时");
    }

    @Override
    public JsonData wish(RequestUserInfo request, Integer awardId) {
        return Callback.fail("400", "请求超时");
    }

    @Override
    public JsonData delete(RequestUserInfo request, Integer id) {
        return Callback.fail("400", "请求超时");
    }

    @Override
    public JsonData banner(RequestUserInfo userInfo) {
        return Callback.fail("400", "请求超时");
    }


}
